package com.dailyblue.project.smbms.alibaba.order.mapper;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface OrderMapper {
    @Insert("insert into smbms_order values(null,#{aid},now(),1,#{orderId})")
    void saveOrder(@Param("aid") String aid,@Param("orderId") String orderId);
    @Insert("insert into smbms_order_details values(null,#{orderId},#{gid},#{num},1)")
    void saveOrderDetails(@Param("orderId") String orderId,@Param("gid") String gid,@Param("num") String num);
}
